package client;

import com.google.gwt.i18n.client.Dictionary;

import java.util.List;
import java.util.ArrayList;
import java.util.Collection;

/**
 * Created by IntelliJ IDEA.
 * User: Wouter Wendelen
 * Date: 12-okt-2007
 * Time: 14:59:31
 */
public class ConfigHelper {

    private static Dictionary areasConfig = Dictionary.getDictionary("richTextAreas");

    public static Collection getAllAreas() {
        return areasConfig.values();
    }

    public static String getCssUrl(String areaId) {
        return Dictionary.getDictionary(areaId).get("cssUrl");
    }

    public static String getWidth(String areaId) {
        return Dictionary.getDictionary(areaId).get("width");
    }

    public static String getHeight(String areaId) {
        return Dictionary.getDictionary(areaId).get("height");
    }
}